package jsu.hx.lost.Model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("lost_items")
public class LostItem {
    @TableId(value = "Id",type = IdType.AUTO)
    private Long id;
    //创建时间
    private Date createdAt;
    //物品名称
    private String itemName;
    //图片
    private String image;
    //物品类别
    private String itemCategory;
    //丢失地点
    private String lostLocation;
    //丢失时间
    private Date lostTime;
    //详细描述
    private String detailedDescription;
    @TableField("user_id")
    private Long userId; // 用户id
    @TableField("locate")
    private String locate;
    @TableLogic // MyBatis-Plus注解，标记该字段为逻辑删除字段
    private Integer isDeleted=0; // 是否逻辑删除，1表示已删除，0表示未删除
}
